package query

import (
	"context"
	"github.com/ztx/payment_project/common/genproto/orderpd"
	"github.com/ztx/payment_project/common/genproto/stockpd"
)

type StockService interface {
	CheckIfItemsInStock(ctx context.Context, items []*orderpd.ItemWithQuantity) (*stockpd.CheckIfItemsInStockResponse, error)
	GetItems(ctx context.Context, itemIDs []string) ([]*orderpd.Item, error)
}
